<?php
class ExamUpload extends CFormModel {
    public $file;

    public function rules()
    {
        return array(
            array('file', 'length', 'max'=>500),
            // verifyCode needs to be entered correctly
            array('file', 'safe', 'on'=>'search'),
        );
    }

    public function attributeLabels()
    {
        return array(
            'file'=>'File',
        );
    }
}